module.exports = {
  transpileDependencies: ['uview-ui'],
  devServer: {
    port: 8989,
    open: false,
    proxy: {
      '/api/': {
        target: 'http://localhost:8097',
        changeOrigin: true,
        logLevel: 'debug',
        pathRewrite: {
          '^/api/': ''
        }
      },
      '/up_load_api/': {
        target: 'http://localhost:8092/',
        changeOrigin: true,
        logLevel: 'debug',
        pathRewrite: {
          '^/up_load_api/': ''
        }
      },
      '/base_api/': {
        target: 'http://localhost:9100/',
        changeOrigin: true,
        logLevel: 'debug',
        pathRewrite: {
          '^/base_api/': ''
        }
      },
      '/to_passport/': {
        target: 'http://localhost:8099/',
        changeOrigin: true,
        logLevel: 'debug',
        pathRewrite: {
          '^/to_passport/': ''
        }
      }
    }
  },
}
